$OpenBSD: patch-src_regex_c,v 1.1.1.1 2014/09/19 22:23:29 bcallah Exp $
--- src/regex.c.orig	Fri Sep 19 18:12:30 2014
+++ src/regex.c	Fri Sep 19 18:12:59 2014
@@ -46,6 +46,9 @@
 # include <sys/types.h>
 #endif
 
+/* for write(2) */
+#include <unistd.h>
+
 /* Whether to use ISO C Amendment 1 wide char functions.
    Those should not be used for Emacs since it uses its own.  */
 #if defined _LIBC
